package com.repository;

import com.domain.DoorDevice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;
public interface DeviceRepo extends JpaRepository<DoorDevice,Integer> {
    @Transactional
    DoorDevice findByName(@Param("Name") String Name);
}
